import request from '@/utils/request'

export function getEmployees(params) {
  return request.get('/sys/user', { params })
}

export function delEmployee(id) {
  return request.delete('/sys/user/' + id)
}

export function addEmployee(data) {
  return request.post('/sys/user', data)
}

export function importEmployee(data) {
  return request.post('/sys/user/batch', data)
}

export function saveEmployee(data) {
  return request.put('/sys/user/' + data.id, data)
}

export function assignEmployee(data) {
  return request.put('/sys/user/assignRoles', data)
}
